package com.ty.feignclients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("cold-bm-stock-service")
public interface StockClient {

    @RequestMapping("/api/inventory/deduct")
     Integer deduct(@RequestParam Integer productId, @RequestParam Integer optionQty) ;
}
